package com.situ.vivamarket.dao;

import com.situ.vivamarket.model.Goods;
import com.situ.vivamarket.model.search.GoodsSearchBean;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface GoodsDao {
    List<Goods> findAll(GoodsSearchBean gsb);

    int deleteByIds(Integer[] ids);


    int insert(Goods goods);

    Goods findById(Integer id);

    int update(Goods goods);

    List<Goods> findByCatId(Integer catId,int limit);
}
